echo off
REM Test Setup Instructions
REM =======================

REM 1. Build the CIP4 Installer project

REM 2. Edit this batch file adding passwords and user names as appropriate. Please edit the copy in the binaries folder
REM    not the original copy in the Tests folder.

REM 3. Run this batch file in the CIP4 binaries folder

CIP4.Installer.exe /Name TestDataLocation /action add /Target File /Parameters BaseDirectoryPath:c:\temp\testfile

REM   The Name must be "TestDataLocation", Target must be "File", location can be anything you like. All the test results 
REM   and various intermediate test data will go in this location.
   
REM 4. run CIP4.Installer for each of the DataProvider types you intend to test - in what follows
REM    you must supply the passwords and usernames for mosso, S3 and the sql database types as appropriate
REM    If you comment it out, the tests for that DataProvider type will not be run. They will show up as "Inconclusive"

CIP4.Installer /Name TestSql /action add /Target Sql /Parameters Database:CIPlDataProvider0404 /Parameters Host:localhost
REM you can also provide the following if you're not using integrated security        
REM /Parameters UserId:<String> /Parameters Password:<String>

CIP4.Installer /Name TestMySql /action add /Target MySql /Parameters Database:CIPlDataProvider0404 /Parameters Host:localhost /Parameters UserId:<a user> /Parameters Password:<a password>

CIP4.Installer /Name TestMosso /action add /Target Mosso /Parameters UserName:<a user> /Parameters AccessKey:<a key>

CIP4.Installer /Name TestS3 /action add /Target S3 /Parameters AccessKey:<a key> /Parameters SecretKey:<a secret key>

CIP4.Installer /Name TestXmlFile /action add /Target XmlFile XmlFileName:c:\temp\testfile\test.xml

CIP4.Installer /Name TestDictionary /action add /Target Dictionary /Parameters BaseDirectoryPath:c:\temp\testfile /Name TestDataLocation


REM Cassandra is a bit of a pain in the neck as the Cassandra DataProvider does not dynamically allocate Cassandra
REM structures for a new collection - all collections for a given Connection name go into the same columnFamily
REM which will crash if the collections have types with different externalIDs - and fail in more subtle ways otherwise...
CIP4.Installer /Name TestCassandra0 /action add /Target Cassandra /Parameters Keyspace:CIP4Test /Parameters ColumnFamily:Decks
CIP4.Installer /Name TestCassandra /action add /Target Cassandra /Parameters Keyspace:testSpace /Parameters ColumnFamily:testFamily
CIP4.Installer /Name TestCassandra1 /action add /Target Cassandra /Parameters Keyspace:testSpace /Parameters ColumnFamily:testFamily1
CIP4.Installer /Name TestCassandra2 /action add /Target Cassandra /Parameters Keyspace:testSpace /Parameters ColumnFamily:testFamily2
CIP4.Installer /Name TestCassandra3 /action add /Target Cassandra /Parameters Keyspace:testSpace /Parameters ColumnFamily:testFamily3
CIP4.Installer /Name TestCassandra4 /action add /Target Cassandra /Parameters Keyspace:testSpace /Parameters ColumnFamily:testFamily4
CIP4.Installer /Name TestCassandra5 /action add /Target Cassandra /Parameters Keyspace:testSpace /Parameters ColumnFamily:testFamily5
CIP4.Installer /Name TestCassandra6 /action add /Target Cassandra /Parameters Keyspace:testSpace /Parameters ColumnFamily:testFamily6
CIP4.Installer /Name TestCassandra7 /action add /Target Cassandra /Parameters Keyspace:testSpace /Parameters ColumnFamily:testFamily7
CIP4.Installer /Name TestCassandra8 /action add /Target Cassandra /Parameters Keyspace:testSpace /Parameters ColumnFamily:testFamily8
CIP4.Installer /Name TestCassandra9 /action add /Target Cassandra /Parameters Keyspace:testSpace /Parameters ColumnFamily:testFamily9
CIP4.Installer /Name TestCassandra10 /action add /Target Cassandra /Parameters Keyspace:testSpace /Parameters ColumnFamily:testFamily10
CIP4.Installer /Name TestCassandra11 /action add /Target Cassandra /Parameters Keyspace:testSpace /Parameters ColumnFamily:testFamily11
CIP4.Installer /Name TestCassandra12 /action add /Target Cassandra /Parameters Keyspace:testSpace /Parameters ColumnFamily:testFamily12
CIP4.Installer /Name TestCassandra13 /action add /Target Cassandra /Parameters Keyspace:testSpace /Parameters ColumnFamily:testFamily13
CIP4.Installer /Name TestCassandra14 /action add /Target Cassandra /Parameters Keyspace:testSpace /Parameters ColumnFamily:testFamily14

CIP4.Installer /Name TestMongoDB /action add /Target MongoDB /Parameters Database:CIPlTest
REM you can also supply         
REM /Parameters Server:<String> /Parameters Port:<Int32 - default is 27017>

REM 5. Copy "TestResults,xml" to the location used in step #3. 

REM 6. Build the CIP4 solution

REM 7. Run the tests
